package com.yb.module.system.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yb.module.system.domain.SysRoleMenu;
import com.yb.module.system.mapper.SysRoleMenuMapper;
import com.yb.module.system.service.SysRoleMenuService;

@Service
public class SysRoleMenuServiceImpl implements SysRoleMenuService {
	
	@Autowired
	private SysRoleMenuMapper sysRoleMenuMapper;

	@Override
	public void insert(SysRoleMenu sysRoleMenu) {
		// TODO Auto-generated method stub
		sysRoleMenuMapper.insert(sysRoleMenu);
	}

	@Override
	public void insertList(List<SysRoleMenu> sysRoleMenuList) {
		// TODO Auto-generated method stub
		sysRoleMenuMapper.insertList(sysRoleMenuList);
	}

	@Override
	public void deleteByRoleId(Long roleId) {
		// TODO Auto-generated method stub
		sysRoleMenuMapper.deleteByRoleId(roleId);
	}

	@Override
	public void deleteByRoleIds(Long[] roleIds) {
		// TODO Auto-generated method stub
		sysRoleMenuMapper.deleteByRoleIds(roleIds);
	}

	@Override
	public void deleteByMenuId(Long menuId) {
		// TODO Auto-generated method stub
		sysRoleMenuMapper.deleteByMenuId(menuId);
	}

	@Override
	public void deleteByMenuIds(Long[] menuIds) {
		// TODO Auto-generated method stub
		sysRoleMenuMapper.deleteByMenuIds(menuIds);
	}

	@Override
	public List<Long> getMenuIdsByRoleId(Long roleId) {
		// TODO Auto-generated method stub
		return sysRoleMenuMapper.getMenuIdsByRoleId(roleId);
	}
}